package com.yunfei.bo.product;

import com.yunfei.utils.money.NumberUtils;
import com.yunfei.utils.string.StringUtil;
import io.swagger.annotations.ApiModelProperty;

import java.text.DecimalFormat;

/****
 * @Description: 产品页面，产品详情
 * @Author: zhengyunfei
 * @Date: 2019/1/8
 * @time:13:46
 */
public class ProductDetailBo extends ProductInfoListForLiCaiShiBo implements java.io.Serializable{
	//项目编号
	@ApiModelProperty(value = "项目编号")
	private String projId;
	//产品编号
	@ApiModelProperty(value = "产品编号")
	private String cFundCode;
	//产品类别
	@ApiModelProperty(value = "产品类别")
	private String productType;
	//管理人
	@ApiModelProperty(value = "管理人")
	private String productManager;
	//托管人
	@ApiModelProperty(value = "托管人")
	private String productCustodian;
	//外包服务商
	@ApiModelProperty(value = "外包服务商")
	private String outSourcingServiceProvider;
	//分红方式
	@ApiModelProperty(value = "分红方式")
	private String cIncdisDate;
	//开户行
	@ApiModelProperty(value = "开户行")
	private String kaiHuHang;
	//产品募集信息：账户名
	@ApiModelProperty(value = "产品募集信息：账户")
	private String cRaiseName;
	//产品募集信息：账号
	@ApiModelProperty(value = "产品募集信息：账号")
	private String cRaiseAcco;
	//产品投向
	@ApiModelProperty(value = "产品投向")
	private String cWayFund;
	//风险收益特征
	@ApiModelProperty(value = "风险收益特征")
	private String riskIncome;
	//产品费率
	@ApiModelProperty(value = "产品费率")
	private String fSubScripTionRatio;
	//风险声明及控制
	@ApiModelProperty(value = "风险声明及控制")
	private String cRiskControl;
	@ApiModelProperty(value = "是否是私募产品，--0:非私募基金 1:私募基金")
	private int isSiMu;//是否是私募产品，--0:非私募基金 1:私募基金
	@ApiModelProperty(value = "发行规模")
	private String fScale;//发行规模
	@ApiModelProperty(value = "判断该客户是否购买过该产品的逻辑判断：0-未购买；>=1-已购买")
    private int isBuy;//判断该客户是否购买过该产品的逻辑判断：0-未购买；>=1-已购买

	public int getIsBuy() {
		return isBuy;
	}

	public void setIsBuy(int isBuy) {
		this.isBuy = isBuy;
	}

	public String getfScale() {
		String result="";
		if(!StringUtil.isNullOrEmpty(fScale)){
			result=NumberUtils.amountConversion(Double.parseDouble(fScale));
		}

		return result;
	}

	public void setfScale(String fScale) {
		this.fScale = fScale;
	}

	public int getIsSiMu() {
		return isSiMu;
	}

	public void setIsSiMu(int isSiMu) {
		this.isSiMu = isSiMu;
	}

	public String getProjId() {
		return projId;
	}

	public void setProjId(String projId) {
		this.projId = projId;
	}

	public String getcFundCode() {
		return cFundCode;
	}

	public void setcFundCode(String cFundCode) {
		this.cFundCode = cFundCode;
	}

	public String getProductType() {
		return productType;
	}

	public void setProductType(String productType) {
		this.productType = productType;
	}

	public String getProductManager() {
		return productManager;
	}

	public void setProductManager(String productManager) {
		this.productManager = productManager;
	}

	public String getProductCustodian() {
		return productCustodian;
	}

	public void setProductCustodian(String productCustodian) {
		this.productCustodian = productCustodian;
	}

	public String getOutSourcingServiceProvider() {
		return outSourcingServiceProvider;
	}

	public void setOutSourcingServiceProvider(String outSourcingServiceProvider) {
		this.outSourcingServiceProvider = outSourcingServiceProvider;
	}

	public String getcIncdisDate() {
		return cIncdisDate;
	}

	public void setcIncdisDate(String cIncdisDate) {
		this.cIncdisDate = cIncdisDate;
	}

	public String getKaiHuHang() {
		return kaiHuHang;
	}

	public void setKaiHuHang(String kaiHuHang) {
		this.kaiHuHang = kaiHuHang;
	}

	public String getcRaiseName() {
		return cRaiseName;
	}

	public void setcRaiseName(String cRaiseName) {
		this.cRaiseName = cRaiseName;
	}

	public String getcRaiseAcco() {
		return cRaiseAcco;
	}

	public void setcRaiseAcco(String cRaiseAcco) {
		this.cRaiseAcco = cRaiseAcco;
	}

	public String getcWayFund() {
		return cWayFund;
	}

	public void setcWayFund(String cWayFund) {
		this.cWayFund = cWayFund;
	}

	public String getRiskIncome() {
		return riskIncome;
	}

	public void setRiskIncome(String riskIncome) {
		this.riskIncome = riskIncome;
	}

	public String getfSubScripTionRatio() {
		return fSubScripTionRatio;
	}

	public void setfSubScripTionRatio(String fSubScripTionRatio) {
		this.fSubScripTionRatio = fSubScripTionRatio;
	}

	public String getcRiskControl() {
		return cRiskControl;
	}

	public void setcRiskControl(String cRiskControl) {
		this.cRiskControl = cRiskControl;
	}
	public static void main(String args[]){
		String fScale="100000000";
		String result="";
		if(!StringUtil.isNullOrEmpty(fScale)){
			result=NumberUtils.amountConversion(Double.parseDouble(fScale));
		}
		System.out.println(result);
	}
}